package com.zlq.cn.util.des;

import com.zlq.cn.util.des.hash.HrHex;

/*******************************************************************************
 * Copyright (c) 2013 by mHealth Corporation all right reserved.
 * KFuPayBitmapUtil.java
 * 2013-9-7 
 * 
 *******************************************************************************/


public class KFuPayImageUtil {

	/**
	 * 将客户端加密数据解密成字节组
	 * @param hex
	 * @return
	 */
	public static byte[] hexToBytes(String hex) {
		if (null == hex || 0 == hex.length()) {
			return null;
		}

		try {
			byte[] array = HrHex.decode(hex);
			return array;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
}
